/*
 * Copyright 2012 Marsrutai.lt
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package lt.marsrutai.mobile.android.dao.dto;

import java.io.Serializable;
import java.util.List;

public class ScheduleDto implements Serializable {

    private static final long serialVersionUID = -3444775814019203250L;

    private String id;
    private String name;
    private String trackName;
    private String transportType;
    private String transport;
    private String validComment;
    
    private List<DaysOfWeekDto> differentRunningDays;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTrackName() {
        return trackName;
    }

    public void setTrackName(String trackName) {
        this.trackName = trackName;
    }

    public String getTransportType() {
        return transportType;
    }

    public void setTransportType(String transportType) {
        this.transportType = transportType;
    }

    public String getTransport() {
        return transport;
    }

    public void setTransport(String transport) {
        this.transport = transport;
    }

    public String getValidComment() {
        return validComment;
    }

    public void setValidComment(String validComment) {
        this.validComment = validComment;
    }
    
    public List<DaysOfWeekDto> getDifferentRunningDays() {
        return differentRunningDays;
    }

    public void setDifferentRunningDays(List<DaysOfWeekDto> differentRunningDays) {
        this.differentRunningDays = differentRunningDays;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((trackName == null) ? 0 : trackName.hashCode());
        result = prime * result + ((transport == null) ? 0 : transport.hashCode());
        result = prime * result + ((transportType == null) ? 0 : transportType.hashCode());
        result = prime * result + ((validComment == null) ? 0 : validComment.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ScheduleDto other = (ScheduleDto) obj;
        if (id == null) {
            if (other.id != null)
                return false;
        }
        else if (!id.equals(other.id))
            return false;
        if (name == null) {
            if (other.name != null)
                return false;
        }
        else if (!name.equals(other.name))
            return false;
        if (trackName == null) {
            if (other.trackName != null)
                return false;
        }
        else if (!trackName.equals(other.trackName))
            return false;
        if (transport == null) {
            if (other.transport != null)
                return false;
        }
        else if (!transport.equals(other.transport))
            return false;
        if (transportType == null) {
            if (other.transportType != null)
                return false;
        }
        else if (!transportType.equals(other.transportType))
            return false;
        if (validComment == null) {
            if (other.validComment != null)
                return false;
        }
        else if (!validComment.equals(other.validComment))
            return false;
        return true;
    }

    

}
